<template>
  <div>
    <nav>
      <ul>
        <li><router-link to="/">首页</router-link></li>
        <li><router-link to="/mall">商城</router-link></li>
      </ul>
    </nav>
    <RouterView />
  </div>
</template>

<style scoped>
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  background-color: #f4f4f4;
}

nav ul li {
  margin-right: 20px;
  padding: 10px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
}
</style>
